/*************************************************************************
        > File Name: 184_hz.c
        > Author: zhangxu
        > Mail: walrus1983@126.com
        > Created Time: 三  7/10 13:59:52 2024
 ************************************************************************/
// 路飞吃桃
#include <stdio.h>

int fun(int x) {
  if (x == 1)
    return 1;
  return (fun(x - 1) + 1) * 2;
}
int main() {
  int n;
  scanf("%d", &n);
  printf("%d\n", fun(n));
  return 0;
}